<div class="tlb">
	<span><a onclick="new Effect.toggle('cats','blind', {ldelim}queue: 'end'{rdelim});"> <img src="{$my_pligg_base}/templates/{$the_template}/images/expand.png" alt="expand" /></a></span>

	<a href="#">{#PLIGG_Visual_Category_Title#}</a>
</div>

<div id="cats" style="display:none">
  <ul id="nav-secondary">
    <li>
      {section name=thecat loop=$cat_array start=1}
        {if $lastspacer eq ""}
          {assign var=lastspacer value=$cat_array[thecat].spacercount}
        {/if}

        {if $cat_array[thecat].spacercount lt $lastspacer}
          {$cat_array[thecat].spacerdiff|repeat_count:'</li></ul>'}
        {/if}

        {if $cat_array[thecat].spacercount gt $lastspacer}
          <ul style="padding-left:12px"><li>
        {/if}

        <div class="line">
          <a href="{$URL_rsscategory, $cat_array[thecat].auto_id}"
             target="_blank" style="border:none;"
          ><img src="{$my_pligg_base}/templates/{$the_template}/images/rss.gif"
                  border="0" class="rss-icon" alt="RSS" /></a>

          {if $pagename eq "published"}
            <a href="{$URL_maincategory, $cat_array[thecat].safename}"
               >{$cat_array[thecat].name}</a>
          {else}
            <a href="{$URL_queuedcategory, $cat_array[thecat].safename}"
               >{$cat_array[thecat].name}</a>
          {/if}
        </div>

        {assign var=lastspacer value=$cat_array[thecat].spacercount}
      {/section}
    </li>
  </ul>
</div>

